<?php
//error_reporting(E_ALL);
include "../../include/common.inc.php";
header( "Content-type: text/html; charset=utf-8" );
session_start();
include "../adminyz.php";

include WEB_CLASS . 'mycrm_class.php';
$customer = new Mycrm( '{tablepre}customer' ); //GetSerialNumber($seldate='')
echo $customer -> GetSerialNumber( $seldate );

function ANY2UTF( $str ) {
                // mb_detect_encoding($str, 'UTF-8, GBK, GB2312, ISO-8859-1', true)
                $str = @mb_convert_encoding( $str, 'UTF-8', 'gb2312' );
                return $str;
}

?>